package main.java.com.lee.syn.procon;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2022/2/24
 */
public class Producer<T> implements Runnable {
    private List<T> queue ;
    private Object lock;

    public Producer(List<T> queue, Object lock) {
        this.queue = queue;
        this.lock = lock;
    }
    @Override
    public void run() {
        for (; ; ) {
            synchronized (lock) {
//                queue.add();

            }
        }
    }
}
